package chunk.model;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;

import chunk.control.GameManager;

public abstract class Shape {

	private Color color = null;

	private GameManager gameMananger = null;

	private int height = 0;

	private int speed = 0;
	
	private int width = 0;

	private int x = 0;
	
	private int y = 0;

	public Shape(int x, int y, int width, int heigth, int speed,Color color,
			GameManager gameManager) {

		this.gameMananger = gameManager;
		this.x = x;
		this.y = y;
		this.height = heigth;
		this.width = width;
		this.speed = speed;
		this.color = color;

	}
	

	public Rectangle getRect() {

		return new Rectangle(x,y,width,height);

	}
	
	public abstract void move();

	public abstract void drawSelf(Graphics g);

	
	public Color getColor() {
		return color;
	}

	public GameManager getGameMananger() {
		return gameMananger;
	}

	public int getHeight() {
		return height;
	}

	public int getSpeed() {
		return speed;
	}

	public int getWidth() {
		return width;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public void setColor(Color color) {
		this.color = color;
	}

	public void setGameMananger(GameManager gameMananger) {
		this.gameMananger = gameMananger;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public void setX(int x) {
		this.x = x;
	}

	public void setY(int y) {
		this.y = y;
	}

}
